# coding: utf-8
from sqlalchemy import CHAR, Column, JSON, String, TIMESTAMP, Table, Text, text, MetaData
from sqlalchemy.dialects.mysql import ENUM, INTEGER, LONGTEXT, MEDIUMINT, MEDIUMTEXT, TEXT, TINYINT, VARCHAR
from ..database import db,serialize

class AdPo(db.Model):
    __tablename__ = 'ad_pos'

    id = Column(INTEGER(10), primary_key=True)
    is_mobile = Column(TINYINT(4), nullable=False, server_default=text("'0'"), comment='0:PC/1:MOB')
    name = Column(String(100, 'utf8mb4_unicode_ci'), nullable=False, server_default=text("''"), comment='名称')
    created_at = Column(TIMESTAMP)
    updated_at = Column(TIMESTAMP)

